package com.neuedu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.mapper.AdminMapper;
import com.neuedu.po.HouseInfoPO;
import com.neuedu.po.ImgPO;
import com.neuedu.po.ImgturnPO;
import com.neuedu.po.StoryInfoPO;
import com.neuedu.po.UserinfoPO;
import com.neuedu.service.AdminService;

@Service
public class AdminServiceImpl implements AdminService{
	@Autowired
	private AdminMapper am;

	@Override
	public List<HouseInfoPO> houseinfochange() throws Exception {
		// TODO Auto-generated method stub
		return am.houseinfochange();
	}

	@Override
	public List<HouseInfoPO> housedisplay() throws Exception {
		// TODO Auto-generated method stub
		return am.housedisplay();
	}


	@Override
	public int savehouse(String houseid) throws Exception {
		// TODO Auto-generated method stub
		return am.savehouse(houseid);
	}

	@Override
	public List<HouseInfoPO> display() throws Exception {
		// TODO Auto-generated method stub
		return am.display();
	}

	@Override
	public int deletehouse(String houseid) throws Exception {
		
		return am.deletehouse(houseid);
	}

	@Override
	public void imgturn(ImgturnPO po) throws Exception {
		am.imgturn(po);
		
		
	}

	@Override
	public List<ImgturnPO> imgturndisplay() throws Exception {
		// TODO Auto-generated method stub
		return am.imgturndisplay();
	}

	@Override
	public void saveimgturn(String imgid) throws Exception {
		am.saveimgturn(imgid);
	}

	@Override
	public List<ImgturnPO> imgturndisplaytwo() throws Exception {
		
		return am.imgturndisplaytwo();
	}

	@Override
	public List<ImgturnPO> imgshow() throws Exception {
		// TODO Auto-generated method stub
		return am.imgshow();
	}

	@Override
	public void deleteimgturn(String imgid) throws Exception {
		
		am.deleteimgturn(imgid);
	}
	@Override
	public List<StoryInfoPO> getStoryInfo() throws Exception {
		// TODO Auto-generated method stub
		return am.getStoryInfo();
	}

	@Override
	public int saveStoryinfo(String storyid) throws Exception {
		// TODO Auto-generated method stub
		am.saveStoryinfo(storyid);
		
		return am.saveStoryimg(storyid);
	}

	@Override
	public List<StoryInfoPO> getStoryInfDisPlay() throws Exception {
		// TODO Auto-generated method stub
		return am.getStoryInfDisPlay();
	}

	@Override
	public int deleteStory(String storyid) throws Exception {
		// TODO Auto-generated method stub
		am.deleteStoryimg(storyid);
		return am.deleteStory(storyid);
	}

	@Override
	public List<ImgPO> indexdisplay() throws Exception {
		// TODO Auto-generated method stub
		return am.indexdisplay();
	}


}
